#ifndef IRESPONSE_H
# define IRESPONSE_H

#include "IBuffer.h"

namespace PommedAPI
{
  class IResponse
  {
    ~IResponse() {}

    virtual void setStatus(const std::string&) = 0;
    virtual void setAttribute(const std::string& name, const std::string& value, bool append = false) = 0;
    virtual void setAttribute(const std::string& name, int value, bool append = false) = 0;
    virtual void setAttribute(const std::string& name, unsigned long value, bool append = false) = 0;
    virtual void setDate(const std::string& name, int timestamp = 0) = 0;
    virtual void setContentType(const std::string&, const std::string& = "") = 0;
    virtual void dump(std::string&) = 0;
    virtual void dump(IOBuffer&) = 0;
  };
} /* PommedAPI */

#endif /* IRESPONSE_H */
